function curry(fn, arr) {
  return (...arg) => {
    arr = arr.concat(arg)
    if(fn.length <= arr.length) {
     return fn(...arr)
    }else{
      return curry(fn, arr)
    }
  }
}